home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / killpg.man < prev    next >
Encoding:
Text File  |  1989-06-20  |  1.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. KILLPG                C Library Procedures                 KILLPG
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      killpg - send signal to a process group
  10.  
  11. SSYYNNOOPPSSIISS
  12.      kkiillllppgg((ppggrrpp,, ssiigg))
  13.      iinntt ppggrrpp,, ssiigg;;
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      _K_i_l_l_p_g sends the signal _s_i_g to the process group _p_g_r_p.  See
  17.      _s_i_g_v_e_c(2) for a list of signals.
  18.  
  19.      The sending process and members of the process group must
  20.      have the same effective user ID, or the sender must be the
  21.      super-user.  As a single special case the continue signal
  22.      SIGCONT may be sent to any process that is a descendant of
  23.      the current process.
  24.  
  25. RREETTUURRNN VVAALLUUEE
  26.      Upon successful completion, a value of 0 is returned.  Oth-
  27.      erwise, a value of -1 is returned and the global variable
  28.      _e_r_r_n_o is set to indicate the error.
  29.  
  30. EERRRROORRSS
  31.      _K_i_l_l_p_g will fail and no signal will be sent if any of the
  32.      following occur:
  33.  
  34.      [EINVAL]       _S_i_g is not a valid signal number.
  35.  
  36.      [ESRCH]        No process can be found in the process group
  37.                     specified by _p_g_r_p.
  38.  
  39.      [ESRCH]        The process group was given as 0 but the
  40.                     sending process does not have a process
  41.                     group.
  42.  
  43.      [EPERM]        The sending process is not the super-user and
  44.                     one or more of the target processes has an
  45.                     effective user ID different from that of the
  46.                     sending process.
  47.  
  48. SSEEEE AALLSSOO
  49.      kill(2), getpgrp(2), sigvec(2)
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 14, 1986                          1
  64.  
  65.  
  66.  
  67.